package sicnu.cs.aps.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author chengke
 * @version 1.0
 * @className ActivityTeamFeedback
 * @description 活动反馈实体类
 * @date 2022/6/1 15:05
 */
@With
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "t_activity_team_feedback")
public class ActivityTeamFeedback {

    /**
     * 队伍id
     */
    @TableId(type = IdType.INPUT)
    private Long teamId;
    /**
     * 作者（用户自定义）
     */
    @TableField(updateStrategy = FieldStrategy.NOT_EMPTY)
    private String author;
    /**
     * 活动反馈内容
     */
    @TableField(updateStrategy = FieldStrategy.NOT_EMPTY)
    private String blog;
    /**
     * 活动反馈创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    /**
     * 最近一次修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(updateStrategy = FieldStrategy.NOT_EMPTY)
    private Date lastEditDate;

    /**
     * 学院id
     */
    @TableField(updateStrategy = FieldStrategy.NOT_NULL)
    private Long collegeId;

    /**
     * 活动反馈标题
     */
    @TableField(updateStrategy = FieldStrategy.NOT_EMPTY)
    private String title;

    /**
     * 封面图片
     */
    @TableField(updateStrategy = FieldStrategy.NOT_EMPTY)
    private String coverPicture;

}